Skip to content

Add a focus mode behind an eye button - #116

Open
Snuux wants to merge 2 commits into
karakanb:masterfrom
Snuux:focus-mode
Open

Snuux wants to merge 2 commits into
karakanb:masterfrom
Snuux:focus-mode

Conversation

@Snuux

@Snuux Snuux commented Nov 17, 2026

Copy link
Copy Markdown

Goal

Give the cards more room on demand: one button hides everything around them, and the page widens to use the freed space.

Changes

  • eye button in the footer that switches focus mode on and off (a crossed-out eye while it is on)
  • in focus mode the clock, the date, the "devo is an open-source extension" caption, the layout picker and the theme toggle fade out
  • the page smoothly widens: cards take 97% of the width instead of 83%, the top bar shrinks to a small gap, the footer gets thinner, and on wide screens the cards grow from 80vh to 92vh
  • a faint "devo" link to the GitHub repo slides out next to the eye button, so the project is still credited
  • the mode is stored in the persisted vuex settings and survives a tab reload

Notes

Verification

  • unit tests: 10 passed
  • vue-cli-service build passes, no lint errors in the changed files
  • checked in the dev server at 1400x850: toggling on and off, the faint link, the persisted state, night mode, and a narrow window

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant